package com.namecard.namecardapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author wzx
 * @since 2023-07-03
 */
@TableName("account_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AccountInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 总积分
     */
    private BigDecimal pointBalance;

    /**
     * 可用积分
     */
    private BigDecimal availableBalance;

    /**
     * 冻结积分积分
     */
    private BigDecimal frozenBalance;

    /**
     * 0:未删除1:逻辑删除2:真实删除
     */
    private Integer delFlag;

    /**
     * pi的余额
     */
    private BigDecimal piBalance;


}
